#                                               -*- Autoconf -*-
# This files generates the configure file.
#
# If you change this file, you usually should run
# autoreconf -fvi
AC_PREREQ(2.61)

# This is where the version information is set
AC_INIT([SPIP], [0.0.1], [andrew.jameson@gmail.com])

#AC_CONFIG_AUX_DIR(config)
AC_CONFIG_MACRO_DIR(config)
# Set this file to one that is in your directory
AC_CONFIG_SRCDIR([src/spip.C])
AC_PROG_LIBTOOL
AC_DISABLE_SHARED

# Automake initialization
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER([config.h])

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AM_PROG_CC_C_O

# Checks for libraries.
SWIN_LIB_CUDA
SWIN_LIB_PSRDADA
SWIN_LIB_HWLOC
BOOST_REQUIRE([1.48],[AC_MSG_NOTICE([Could not find BOOST]])
BOOST_SYSTEM([mt])
SWIN_LIB_SPEAD2
SWIN_LIB_VMA

# Checks for header files.

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_CONFIG_FILES([Makefile
  src/Makefile
  src/Affinity/Makefile
  src/Network/Makefile
  src/Formats/Makefile
  src/Formats/BPSR/Makefile
  src/Formats/CASPSR/Makefile
  src/Formats/SKA1/Makefile
  src/Formats/MeerKAT/Makefile
  src/Formats/KAT7/Makefile
  src/Formats/UWB/Makefile
  src/Formats/VDIF/Makefile
  src/Dada/Makefile
  src/SignalProcessing/Makefile
  src/Telescope/Makefile
  src/Util/Makefile
  scripts/Makefile
  scripts/spip/Makefile
  scripts/spip/threads/Makefile
  scripts/spip/utils/Makefile
  scripts/spip/daemons/Makefile
  web/Makefile
  web/controls/Makefile
  web/images/Makefile
  web/js/Makefile
  web/results/Makefile
  web/logs/Makefile
  web/status/Makefile
  web/search/Makefile
  web/stats/Makefile
  web/test/Makefile
  web/timing/Makefile])
AC_OUTPUT 
